Devices > Remote Devices > OPC EIE > Quality Mapping

OPC Quality Mapping

The OPC EIE device template file includes a section for quality bit mapping, which is specific only to the OPC device.

The qualityMapping section of the OPC EIE device template file is an optional section that provides a method to map OPC quality values to point status bits in the PNT. The quality bits represent the quality state for an item's data value. Only the quality bits that the user is interested in mapping need to be included in the device template file. If omitted, none of the quality bits will be mapped to CygNet status bits.

Each quality state may include the following attributes that map to CygNet point status bits in the PNT and indicate if the bit is set (true) or cleared (false):

See Point Status Bits for a description of CygNet status bits that can be mapped.

The low eight bits are defined in the form of three bit fields: Quality, Sub-status, and Limit status (QQSSSSLL). The following table describes OPC EIE Quality Mapping.

Attribute Description

mask

The bit mask is applied to the quality state received from the OPC server.

 

  • 0XC0 — represents the Quality bit field
  • 0XFC — represents the Sub-status field
  • 0X03 — represents the Limit field

value

If the masked quality bits equal the value specified in the qualityMapping section of the device template file, an action is taken using the following attributes:

 

  • setUnreliable
  • setUser<x>

The following example displays a sample qualityMapping structure.

Back to top

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.